package com.suray.wcs.service.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum CodeLevel implements IEnum<Integer> {
    WARNING(1, "警告"),
    FAULT(2, "故障"),
    RGV_SON_FAULT(3, "子车故障"),
    ;


    @EnumValue
    private Integer value;
    @JsonValue
    private String description;

    CodeLevel(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    @Override
    public String toString() {
        return description;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
